home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Games Machine 76
/
XENIATGM66.iso
/
Indiana Jones
/
Indiana Jones.exe
/
RESOURCE
/
PREVIEW.GOB
/
cog_nub_jewel.cog
< prev
next >
Wrap
Text File
|
1999-11-15
|
1KB
|
73 lines
# Jones 3D Cog Script
#
# nub_Jewel.cog
#
# [TL] [GGJ]
#
# (C) 1999 LucasArts Entertainment Co. All Rights Reserved
#
# ========================================================================================
symbols
message startup
message entered
message exited
thing player local
thing plasma
sector topSector
surface pad
end
# ========================================================================================
code
startup:
StartCutscene(1);
Sleep(0.01);
EndCutscene();
player = GetLocalPlayerThing();
return;
# ........................................................................................
entered:
if ((GetSenderRef() == pad) && (GetSourceRef() == player))
{
print("Jewel is TRUE...");
JewelFlyingStatus(1, plasma);
}
if (GetSenderRef() == topSector)
{
JewelFlyingStatus(1, plasma);
}
return;
# ........................................................................................
exited:
if ((GetSenderRef() == pad) && (GetSourceRef() == player))
{
print("Jewel is FALSE...");
JewelFlyingStatus(0, plasma);
}
if (GetSenderRef() == topSector)
{
JewelFlyingStatus(0, plasma);
}
return;
# ........................................................................................
end